home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
424_02
/
ED-157
/
makefile.solaris2
< prev
next >
Wrap
Makefile
|
1994-03-28
|
500b
|
22 lines
# makefile for ED.
#
# To build ed, say:
#
# make -f makefile.solaris2
#
include objects
include compiler
all: a.out set_size/set_size
a.out: config.h main.o $(OBJECTS)
$(CC) main.o $(OBJECTS) -lm -lsocket -lnsl -o $@
strip $@
regex.o: regex.c
$(CC) $(CFLAGS) -c -DHAVE_STRING_H -o $@ $<
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
set_size/set_size: set_size/set_size.c
$(CC) $(CFLAGS) -D__hpux -o $@ set_size/set_size.c
config.h:
@echo You must run configure or autoconfigure before make !
@exit 2